<?php

/**
 * Subclass for representing a row from the 'user' table.
 *
 * 
 *
 * @package lib.model
 */ 
class User extends BaseUser
{
  public function setHashedPassword($password)
  {
    $this->setSalt(myTools::makeSalt($this->getId().$this->getUsername().$this->getEmail()));
    $this->setPassword(sha1($this->getSalt().$password));
  }
}
